package com.chudy.visual.server.utils;

import cn.hutool.core.io.FileUtil;
//import org.pentaho.di.core.KettleEnvironment;
//import org.pentaho.di.core.exception.KettleException;
//import org.pentaho.di.job.Job;
//import org.pentaho.di.job.JobMeta;
//import org.pentaho.di.trans.Trans;
//import org.pentaho.di.trans.TransMeta;

public class KettleUtils {
    public static void main(String[] args){
//        String fileName = "D:/dev_lib/pdi-ce-9.1.0.0-324/file/";
////        fileName += "pms_org_syn_job.kjb";
//        fileName += "pms_user_syn_job.kjb";
//        System.out.println("-----------");
//        try {
//            KettleEnvironment.init();
//            JobMeta jm = new JobMeta(fileName,null);
//            Job job = new Job(null, jm);
//            job.start();
//            job.waitUntilFinished();
//
//            //成功
//        } catch (KettleException e) {
//            //异常失败
//            e.printStackTrace();
//        }
    }
}
